function [Omega,idx_arr]=GetSampleSet(SampleRate,size_arr,Add)
% Number of samples that we will reveal.
M = SampleRate*size_arr(1)*size_arr(2);
idx_arr=zeros(Add,size_arr(1)*size_arr(2));
%Omega=zeros(size_arr(1),size_arr(2),Add);
Omega=sptensor([],[],[size_arr(1),size_arr(2),Add]);
Omega_Temp=zeros(size_arr(1),size_arr(2));
%idx_arr_T=zeros(1,size_arr(1)*size_arr(2));
for i=1:Add
idx_arr(i,:)=randperm(size_arr(1)*size_arr(2));
idx_arr_T=idx_arr(i,:);
% Select a random set of M entries
Omega_Temp(idx_arr_T(1:M))=1;
Omega(:,:,i)=sptensor(Omega_Temp);
Omega_Temp(:,:,:)=0;
end
end